package com.landiao.mapper;

import com.landiao.entities.CouponShopRela;

public interface CouponShopRelaMapper extends BaseMapper<CouponShopRela,String>{
    int deleteByPrimaryKey(String couponShopRelaId);

    int insert(CouponShopRela record);

    int insertSelective(CouponShopRela record);

    CouponShopRela selectByPrimaryKey(String couponShopRelaId);

    int updateByPrimaryKeySelective(CouponShopRela record);

    int updateByPrimaryKey(CouponShopRela record);
    /**
     * 通过卡券id删除关联门店
     * @param couponId
     */
	void deleteByCouponId(String couponId);
	/**
	 * 通过couponId查询关联的门店并组成字符串 如："a1,a2,a3"
	 * @param id
	 * @return
	 */
	String getShopIdsByCouponId(String id);
}